package com.gurumades.jsonform.shared.dispatch;

import java.io.Serializable;
import java.util.HashMap;

import net.customware.gwt.dispatch.shared.Action;

public class GetFormAction implements Action<GetFormResult>{
	String formID;
	
	HashMap<String, Serializable> buildParams = new HashMap<String, Serializable>();
	
	public GetFormAction() {
	}

	public GetFormAction(String formID) {
		super();
		this.formID = formID;
	}
	
	

	public GetFormAction(String formID,
			HashMap<String, Serializable> buildParams) {
		super();
		this.formID = formID;
		this.buildParams = buildParams;
	}

	public void setFormID(String formID) {
		this.formID = formID;
	}
	
	public String getFormID() {
		return formID;
	}
	
	public void putBuildParam(String key, Serializable val) {
		buildParams.put(key, val);
	}
	
	public Serializable getbuildParam(String key){
		return buildParams.get(key);
	}
	
	public HashMap<String, Serializable> getBuildParams() {
		return buildParams;
	}
}
